Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate node def from /object_info endpoint #159

Merged
merged 4 commits into from
Jul 18, 2024
Merged

Validate node def from /object_info endpoint #159

merged 4 commits into from
Jul 18, 2024

Conversation

huchenlei
Copy link
Member

@huchenlei huchenlei commented Jul 18, 2024

Closes #156.

This PR add zod schema validation on api.getNodeDef call, ignoring corrupted node defs.

The validation function now also automatically converts all allowed types to a single unified format: [inputType, inputSpecDict]

@huchenlei huchenlei changed the title Validate node def from /object_inf endpoint Validate node def from /object_info endpoint Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] No menu in 1.1.7
1 participant